package com.zcl.service;

import com.zcl.entity.dept;
import com.zcl.mapper.deptMapper;
import com.zcl.util.myBatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class deptServiceImpl implements deptService{
    @Override
    public List<dept> findALL() {
        try (SqlSession sqlSession = myBatisUtil.getSS(true)){
             deptMapper mapper = sqlSession.getMapper(deptMapper.class);
            return mapper.findALL();
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
